﻿using System;
using UnityEngine;

// Token: 0x020002E0 RID: 736
[RequireComponent(typeof(Canvas))]
public class TrialBannar : MonoBehaviour
{
	// Token: 0x170001B8 RID: 440
	// (get) Token: 0x060012AA RID: 4778 RVA: 0x00087320 File Offset: 0x00085520
	private GameControl GameCtrl
	{
		get
		{
			if (this.gameCtrl == null)
			{
				this.gameCtrl = UnityEngine.Object.FindObjectOfType<GameControl>();
			}
			return this.gameCtrl;
		}
	}

	// Token: 0x170001B9 RID: 441
	// (get) Token: 0x060012AB RID: 4779 RVA: 0x00087344 File Offset: 0x00085544
	// (set) Token: 0x060012AC RID: 4780 RVA: 0x0008734C File Offset: 0x0008554C
	public bool Hide
	{
		get
		{
			return this._hide;
		}
		set
		{
			this._hide = value;
		}
	}

	// Token: 0x060012AD RID: 4781 RVA: 0x00087358 File Offset: 0x00085558
	private void Start()
	{
		this.canvas = base.GetComponent<Canvas>();
	}

	// Token: 0x060012AE RID: 4782 RVA: 0x00087368 File Offset: 0x00085568
	private void Update()
	{
		this.canvas.enabled = (!this.GameCtrl.IsHideUI && !this.Hide);
	}

	// Token: 0x040017A2 RID: 6050
	private Canvas canvas;

	// Token: 0x040017A3 RID: 6051
	private GameControl gameCtrl;

	// Token: 0x040017A4 RID: 6052
	private bool _hide;
}
